<template>
  <div>
    <div style="height: 150px;background: salmon;">
      banner
    </div>
    <ul class="nav"> 
      <!-- <li>首页</li>
      <li>商品</li>
      <li>我的</li> -->
      <router-link to="/home" tag="li" active-class="on">首页</router-link>
      <router-link to="/goods" tag="li" active-class="on">商品</router-link>
      <router-link to="/mine" tag="li" active-class="on">我的</router-link>
    </ul>
    <router-view></router-view>
  </div>
</template>

<script>
  export default {
    data() {
      return {
       
      }
    },
    methods: {
    },
  }
</script>

<style lang="scss">
  .nav{
    border-top: 1px solid #ccc;
    width: 100%;
    display: flex;
    position: fixed;
    left: 0;
    bottom: 0;
    li{
      flex: 1;
      text-align: center;

    }
  }
  .on{
    background: gray;
    color: white;
  }
</style>
